import { combineReducers } from 'redux';
// 1. 按功能模块名去拆分reducer函数
import todoReducer from './todo';
import userReducer from './user';

// 2. 通过combineReducers合并reducer函数
const rootReducer = combineReducers({
  // 💥按功能模块名命名键名
  todo: todoReducer,
  user: userReducer,
});

export default rootReducer;
